package com.iuie.ns.frame.free.excel.beans;

import java.util.List;

import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;

import com.iuie.ns.frame.free.excel.enums.FreeExcelHeaderStyle;

public class FreeExcelXlsExecutor implements FreeExcelExecutor {

	@Override
	public void execute(FreeExcelWorkBook feWorkBook) {
		// 判断是否有工作表，没有工作表的情况下不需要操作
		List<FreeExcelSheet> sheets = feWorkBook.getSheets();
		if (sheets == null || sheets.size() == 0) {
			return ;
		}
		
		Workbook workbook = new SXSSFWorkbook();
		for (FreeExcelSheet sheet : sheets) {
			FreeExcelHeaderStyle headerStyle = sheet.getHeaderStyle();
			headerStyle.get(feWorkBook.getWorkBookType());
		}
	}

}
